package com.soft.springhrms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.soft.springhrms.pojo.Employees;
import com.baomidou.mybatisplus.extension.service.IService;
import com.soft.springhrms.vo.ResultVO;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author DELL
 * @description 针对表【employees】的数据库操作Service
 * @createDate 2024-11-16 18:48:18
 */
public interface EmployeesService extends IService<Employees> {

    IPage<Employees> getEmployeesWithPagination(int page, int size, String keyword);

    ResultVO updateEmploymentStatus(Map<String, Object> params);

    void EditEmployees(Employees employees);

    Integer countByDepartment(Integer departmentId);

    Integer countByPosition(Integer positionId);

    Employees getEmployeeInfo(Integer id);

    ResultVO getApproveSalaryById(Integer employeeId);

    IPage<Employees> getEmployeesAsNoAttendance(int page, int size,String date);

    ResultVO getDepartmentEcharts();

    ResultVO getPositionEcharts(Integer departmentId);
}
